<template>
  <div>
    <div class="bg-white grid-content">
      <div style="overflow: hidden">
        <div class="mytitle">
          <svg-icon icon-class="yjbb" class="myIcon" />月度生产数据统计表
        </div>
        <div class="show-time">{{ nowDate }}</div>
        <div class="myButtons">
          <el-button
            @click="handleClick('', 'add')"
            v-if="hasPermission('sys:sjtb:scgl:ydscsjtjb:add')"
            >新增</el-button
          >

          <el-button icon="el-icon-download" @click="handleDownload"
            >下载模板</el-button
          >
          <el-button
            class="import-button"
            icon="el-icon-upload2"
            @click="uploadFiles"
            v-if="hasPermission('sys:sjtb:scgl:ydscsjtjb:import')"
            ><i class="icon"></i>批量导入</el-button
          >
          <el-dialog
            title="批量导入"
            :visible.sync="importDialog"
            class="dialog-md"
            width="500px"
            :before-close="handleClose1"
          >
            <el-form
              ref="fileForm"
              label-position="center"
              style="width: 100%"
              enctype="multipart/form-data"
            >
              <el-form-item align="center" label="">
                <el-upload
                  ref="upload"
                  class="uploadDialog"
                  name="myfile"
                  action="string"
                  :http-request="httpRequest"
                  :on-change="handleChange"
                  :on-remove="handleRemove"
                  :limit="1"
                  :file-list="fileList"
                  accept=".xlsx,.xls"
                  :auto-upload="true"
                >
                  <el-button slot="trigger" size="small" type="primary"
                    >上传文件</el-button
                  >
                  <div class="el-upload__tip" style="color: grey">
                    建议下载模板进行导入
                  </div>
                  <div class="el-upload__tip">1.仅支持上传.xls、.xlsx文件</div>
                  <div class="el-upload__tip">2.文件数据不能超过1000条</div>
                </el-upload>
              </el-form-item>
            </el-form>
            <span slot="footer" class="dialog-footer">
              <el-button size="small" @click="cancelUpload()">取消</el-button>
              <el-button
                type="primary"
                size="small"
                @click="upload()"
                :disabled="uploading"
                >确定导入</el-button
              >
            </span>
          </el-dialog>
        </div>
      </div>
      <!-- 表格 -->
      <el-table :data="tableData" @selection-change="handleSelectionChange" stripe>
        <el-table-column type="index" label="序号" :index="indexMethod">
        </el-table-column>
        <el-table-column prop="rq" label="日期" width="80" align="center">
        </el-table-column>
        <el-table-column prop="gs" label="公司" align="center">
          <el-table-column prop="gs_cs" label="产油" align="center">
            <el-table-column prop="gsCsJkcy" label="井口产油" align="center">
            </el-table-column>
            <el-table-column prop="gsCsMdwj" label="末端微机" align="center">
            </el-table-column>
            <el-table-column prop="gsCsJhcy" label="计划产油" align="center">
            </el-table-column>
            <el-table-column prop="gsCsHscy" label="核实产油" align="center">
            </el-table-column>
            <el-table-column prop="gsCsGsws" label="公司外输" align="center">
            </el-table-column>
            <el-table-column prop="gsCsElws" label="二联外输" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gsLy" label="拉油" align="center">
            <el-table-column prop="gsLyLy" label="拉油" align="center">
            </el-table-column>
            <el-table-column prop="gsLyTl" label="提捞" align="center">
            </el-table-column>
            <el-table-column prop="gsLyLdy" label="落地油" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gsKc" label="库存" align="center">
            <el-table-column prop="gsKcGskc" label="公司库存" align="center">
            </el-table-column>
            <el-table-column prop="gsKcElcz" label="二联差值" align="center">
            </el-table-column>
            <el-table-column prop="gsKcElkc" label="二联库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gsZs" label="注水" align="center">
            <el-table-column prop="gsZsJhzs" label="计划水量" align="center">
            </el-table-column>
            <el-table-column prop="gsZsSjsl" label="实际水量" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gs_jy" label="积压" align="center">
            <el-table-column prop="gsJyZy" label="作业" align="center">
            </el-table-column>
            <el-table-column prop="gsJyDzy" label="待作业" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gsCy" label="测压" align="center">
            <el-table-column prop="gsCyYj" label="油井" align="center">
            </el-table-column>
            <el-table-column prop="gsCySj" label="水井" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="dyzyq" label="第一作业区" align="center">
          <el-table-column prop="dyzyqZyq" label="作业区" align="center">
            <el-table-column
              prop="dyzyqZyqJhcy"
              label="计划产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqSjcy"
              label="实际产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqJhzs"
              label="计划注水"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqRzsl"
              label="日注水量"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqZyjy"
              label="作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqDzyjy"
              label="待作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqYjcy"
              label="油井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqShjcy"
              label="水井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dyzyqZyqKc" label="库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dyzyqS322Wj " label="树322" align="center">
            <el-table-column
              prop="dyzyqS322Wj"
              label="微机"
              width="40"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dyzyqD12" label="东12" align="center">
            <el-table-column prop="dyzyqD12Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dyzyqS12" label="尚12" align="center">
            <el-table-column prop="dyzyqS12Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="dezyq" label="第二作业区" align="center">
          <el-table-column prop="dezyqZyq" label="作业区" align="center">
            <el-table-column
              prop="dezyqZyqJhcy"
              label="计划产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqSjcy"
              label="实际产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqJhzs"
              label="计划注水"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqRzsl"
              label="日注水量"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqZyjy"
              label="作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqDzyjy"
              label="待作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqYjcy"
              label="油井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqShjcy"
              label="水井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dezyqZyqKc" label="库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dezyqD16" label="东16" align="center">
            <el-table-column prop="dezyqD16Wj" label="微机" align="center">
            </el-table-column>
            <el-table-column
              prop="dezyqD16Wscl"
              label="污水处理"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dezyqD14" label="东14" align="center">
            <el-table-column
              prop="dezyqD14382wj"
              label="382微机"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="deyzyqD14D14wj"
              label="东14微机"
              align="center"
            >
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="dszyq" label="第三作业区" align="center">
          <el-table-column prop="dszyqZyq" label="作业区" align="center">
            <el-table-column
              prop="dszyqZyqJhcy"
              label="计划产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqSjcy"
              label="实际产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqJhzs"
              label="计划注水"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqRzsl"
              label="日注水量"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqZyjy"
              label="作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqDzyjy"
              label="待作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqYjcy"
              label="油井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqShjcy"
              label="水井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dszyqZyqKc" label="库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dszyqS2" label="树2" align="center">
            <el-table-column prop="dszyqS2Cyl" label="产油量" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dszyq101d" label="101队" align="center">
            <el-table-column prop="dszyq101dCyl" label="产油量" align="center">
            </el-table-column>
            <el-table-column
              prop="dszyq101dZrl"
              label="c02注入量"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dszyqS16" label="树16" align="center">
            <el-table-column prop="dszyqS16Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="dsizyq" label="第四作业区" align="center">
          <el-table-column prop="dsizyqZyq" label="作业区" align="center">
            <el-table-column
              prop="dsizyqZyqJhcy"
              label="计划产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqSjcy"
              label="实际产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqJhzs"
              label="计划注水"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqRzsl"
              label="日注水量"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqZyjy"
              label="作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqDzyjy"
              label="待作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqYjcy"
              label="油井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqShjcy"
              label="水井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dsizyqZyqKc" label="库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqS103" label="树103" align="center">
            <el-table-column prop="dsizyqS103Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqS12" label="树12" align="center">
            <el-table-column prop="dsizyqS12Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqX30" label="徐30" align="center">
            <el-table-column prop="dsizyqX30Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqX6" label="徐6" align="center">
            <el-table-column
              prop="dsizyqX6Wj"
              label="微机"
              width="40"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqYel" label="榆二联" align="center">
            <el-table-column
              prop="dsizyqYelEljy"
              label="二联接油"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dsizyqYelSc" label="输差" align="center">
            </el-table-column>
            <el-table-column prop="dsizyqYelDt" label="电脱" align="center">
            </el-table-column>
            <el-table-column prop="dsizyqYelWs" label="污水" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqMdjyl" label="末端接油量" align="center">
            <el-table-column
              prop="dsizyqMdjylSyz"
              label="试验站"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dsizyqMdjylD16" label="东16" align="center">
            </el-table-column>
            <el-table-column prop="dsizyqMdjylS8" label="树8" align="center">
            </el-table-column>
            <el-table-column
              prop="dsizyqMdjylS127"
              label="树127"
              align="center"
            >
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="zz" label="肇州" align="center">
          <el-table-column prop="zy" label="肇州一工区" align="center">
            <el-table-column prop="zzZyJhcy" label="计划产油" align="center">
            </el-table-column>
            <el-table-column prop="zzZySjcy" label="实际产油" align="center">
            </el-table-column>
            <el-table-column prop="zzZyJhzs" label="计划注水" align="center">
            </el-table-column>
            <el-table-column prop="zzZyRzsl" label="日注水量" align="center">
            </el-table-column>
            <el-table-column prop="zzZyZyjy" label="作业积压" align="center">
            </el-table-column>
            <el-table-column prop="zzZyDzyjy" label="待作业积压" align="center">
            </el-table-column>
            <el-table-column prop="zzZyYjcy" label="油井测压" align="center">
            </el-table-column>
            <el-table-column prop="zzZyShjcy" label="水井测压" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="ze" label="肇州二工区" align="center">
            <el-table-column prop="zzZeJhcy" label="计划产油" align="center">
            </el-table-column>
            <el-table-column prop="zzZeSjcy" label="实际产油" align="center">
            </el-table-column>
            <el-table-column prop="zzZeJhzs" label="计划注水" align="center">
            </el-table-column>
            <el-table-column prop="zzZeRzsl" label="日注水量" align="center">
            </el-table-column>
            <el-table-column prop="zzZeZyjy" label="作业积压" align="center">
            </el-table-column>
            <el-table-column prop="zzZeDzyjy" label="待作业积压" align="center">
            </el-table-column>
            <el-table-column prop="zzZeYjcy" label="油井测压" align="center">
            </el-table-column>
            <el-table-column prop="zzZeShjcy" label="水井测压" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="tlzyq" label="提捞作业区" align="center">
          <el-table-column prop="tlzyqZyq" label="作业区" align="center">
            <el-table-column
              prop="tlzyqZyqJhly"
              label="计划捞油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="tlzyqZyqSjly"
              label="实际捞油"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="tlzyqXyd" label="卸油点" align="center">
            <el-table-column prop="tlzyqXydD16" label="东16" align="center">
            </el-table-column>
            <el-table-column prop="tlzyqXydS18" label="树18" align="center">
            </el-table-column>
            <el-table-column
              prop="tlzyqXydLyhj"
              label="捞油合计"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="tlzyqXydXjly"
              label="新井捞油"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="tlzyqXydLdy" label="落地油" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="bz" label="备注" width="100" align="center">
        </el-table-column>

        <el-table-column
          align="center"
          fixed="right"
          prop="approveStatus"
          label="审核状态"
        >
          <template slot-scope="scope">
            <el-tooltip
              :content="scope.row.approveBz"
              placement="bottom"
              effect="light"
              :disabled="!scope.row.approveBz"
            >
              <el-badge
                :is-dot="scope.row.approveBz || scope.row.approveBz === ' '"
                class="item"
              >
                <el-tag
                  :class="scope.row.approveBz ? 'tagstyle' : ''"
                  :type="
                    scope.row.approveStatus == '2'
                      ? 'success'
                      : scope.row.approveStatus == '1'
                      ? 'warning'
                      : scope.row.approveStatus == '0'
                      ? 'info'
                      : 'danger'
                  "
                  disable-transitions
                  >{{
                    scope.row.approveStatus == "2"
                      ? "已通过"
                      : scope.row.approveStatus == "1"
                      ? "未审核"
                      : scope.row.approveStatus == "0"
                      ? "未提交"
                      : "未通过"
                  }}</el-tag
                >
              </el-badge>
            </el-tooltip>
          </template>
        </el-table-column>

        <el-table-column
          align="center"
          fixed="right"
          label="操作"
          width="140"
          v-if="
            hasPermission('sys:sjtb:scgl:ydscsjtjb:edit') ||
            hasPermission('sys:sjtb:scgl:ydscsjtjb:check')
          "
        >
          <template slot-scope="scope">
            <el-button
              @click="handleClick(scope.row, 'check')"
              type="text"
              v-if="hasPermission('sys:sjtb:scgl:ydscsjtjb:check')"
              >查看</el-button
            >
            <el-button
              @click="handleClick(scope.row, 'edit')"
              type="text"
              v-if="hasPermission('sys:sjtb:scgl:ydscsjtjb:edit')"
              >编辑</el-button
            >
            <el-button
              @click="handleDelete(scope.row)"
              type="text"
              style="color: red"
              >删除</el-button
            >
          </template>
        </el-table-column>
      </el-table>
      <!-- 分页器 -->
      <el-pagination
        align="right"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="pageNo"
        :page-sizes="[1, 5, 10, 20, 30]"
        :page-size="pageSize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="tableData.length"
      >
      </el-pagination>
    </div>

    <!-- 弹出框 -->
    <el-dialog
      :title="myDialogTitle"
      :visible.sync="dialogFormVisible"
      :before-close="handleClose"
    >
      <el-form
        :inline="true"
        :model="ydscsjtjbForm"
        class="demo-form-inline"
        ref="ydscsjtjbForm"
        :disabled="isInput"
      >
        <!-- <el-divider content-position="left">基础信息</el-divider> -->
        <el-row>
          <el-col :span="12">
            <el-form-item label="日期:">
              <el-date-picker
                v-model="ydscsjtjbForm.rq"
                align="right"
                type="date"
                placeholder="请选择日期"
                :picker-options="pickerOptions"
              >
              </el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>

        <el-divider content-position="left">公司</el-divider>

        <el-row>
          <el-col :span="12">
            <el-form-item label="井口产油">
              <el-input
                v-model="ydscsjtjbForm.gsCsJkcy"
                placeholder="请输入井口产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="末端微机:">
              <el-input
                v-model="ydscsjtjbForm.gsCsMdwj"
                placeholder="请输入末端微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.gsCsJhcy"
                placeholder="请输入计划产"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="核实产油：">
              <el-input
                v-model="ydscsjtjbForm.gsCsHscy"
                placeholder="请输入核实产油量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="公司外输:">
              <el-input
                v-model="ydscsjtjbForm.gsCsGsws"
                placeholder="请输入公司外输"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="二联外输:">
              <el-input
                v-model="ydscsjtjbForm.gsCsElws"
                placeholder="请输入二联外输"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <!-- <el-divider content-position="left">公司拉油情况</el-divider> -->
        <el-row>
          <el-col :span="12">
            <el-form-item label="拉油:">
              <el-input
                v-model="ydscsjtjbForm.gsLyLy"
                placeholder="请输入拉油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="提捞:">
              <el-input
                v-model="ydscsjtjbForm.gsLyTl"
                placeholder="请输入提捞"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="落地油:">
              <el-input
                v-model="ydscsjtjbForm.gsLyLdy"
                placeholder="请输入落地油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="公司库存:">
              <el-input
                v-model="ydscsjtjbForm.gsKcGskc"
                placeholder="请输入公司库存"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <!-- <el-divider content-position="left">公司库存情况</el-divider> -->
        <el-row>
          <el-col :span="12">
            <el-form-item label="二联差值:">
              <el-input
                v-model="ydscsjtjbForm.gsKcElcz"
                placeholder="请输入二联差值"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="二联库存:">
              <el-input
                v-model="ydscsjtjbForm.gsKcElkc"
                placeholder="请输入二联库存"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <!-- <el-divider content-position="left">公司注水情况</el-divider> -->

        <el-row>
          <el-col :span="12">
            <el-form-item label="计划水量:">
              <el-input
                v-model="ydscsjtjbForm.gsZsJhzs"
                placeholder="请输入计划水量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际水量:">
              <el-input
                v-model="ydscsjtjbForm.gsZsSjsl"
                placeholder="请输入实际水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <!-- <el-divider content-position="left">公司积压测压情况</el-divider> -->
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业:">
              <el-input
                v-model="ydscsjtjbForm.gsJyZy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业:">
              <el-input
                v-model="ydscsjtjbForm.gsJyDzy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井:">
              <el-input
                v-model="ydscsjtjbForm.gsCyYj"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井:">
              <el-input
                v-model="ydscsjtjbForm.gsCySj"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">第一作业区</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际产油:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqSjcy"
                placeholder="请输入实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划注水:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqJhzs"
                placeholder="请输入计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="日注水量:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqRzsl"
                placeholder="请输入日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqZyjy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqDzyjy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井测压:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqYjcy"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井测压:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqShjcy"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="库存:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqKc"
                placeholder="请输入库存"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树322微机:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqS322Wj"
                placeholder="请输入树322微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="东12微机:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqD12Wj"
                placeholder="请输入东12微机"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="尚12微机:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqS12Wj"
                placeholder="请输入尚12微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <el-divider content-position="left">第二作业区</el-divider>

        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际产油:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqSjcy"
                placeholder="请输入实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划注水:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqJhzs"
                placeholder="请输入计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="日注水量:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqRzsl"
                placeholder="请输入日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqZyjy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqDzyjy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井测压:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqYjcy"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井测压:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqShjcy"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="库存:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqKc"
                placeholder="请输入库存"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="东16微机:">
              <el-input
                v-model="ydscsjtjbForm.dezyqD16Wj"
                placeholder="请输入东16微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="东16污水处理:">
              <el-input
                v-model="ydscsjtjbForm.dezyqD16Wscl"
                placeholder="请输入东16污水处理"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="东14-382微机:">
              <el-input
                v-model="ydscsjtjbForm.dezyqD14382wj"
                placeholder="请输入东14-382微机"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="东14微机:">
              <el-input
                v-model="ydscsjtjbForm.deyzyqD14D14wj"
                placeholder="请输入东14微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <el-divider content-position="left">第三作业区</el-divider>

        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际产油:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqSjcy"
                placeholder="请输入实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划注水:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqJhzs"
                placeholder="请输入计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="日注水量:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqRzsl"
                placeholder="请输入日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqZyjy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqDzyjy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井测压:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqYjcy"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井测压:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqShjcy"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="库存:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqKc"
                placeholder="请输入库存"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树2产油量:">
              <el-input
                v-model="ydscsjtjbForm.dszyqS2Cyl"
                placeholder="请输入树2产油量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="101队产油量:">
              <el-input
                v-model="ydscsjtjbForm.dszyq101dCyl"
                placeholder="请输入101队产油量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="101队C02注入量:">
              <el-input
                v-model="ydscsjtjbForm.dszyq101dZrl"
                placeholder="请输入101队C02注入量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树16微机:">
              <el-input
                v-model="ydscsjtjbForm.dszyqS16Wj"
                placeholder="请输入树16微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">第四作业区</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际产油:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqSjcy"
                placeholder="请输入实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划注水:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqJhzs"
                placeholder="请输入计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="日注水量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqRzsl"
                placeholder="请输入日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqZyjy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqDzyjy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井测压:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqYjcy"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井测压:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqShjcy"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="库存:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqKc"
                placeholder="请输入库存"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树103微机:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqS103Wj"
                placeholder="请输入树103微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="树12微机:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqS12Wj"
                placeholder="请输入树12微机"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="徐30微机:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqX30Wj"
                placeholder="请输入徐30微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="徐6微机:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqX6Wj"
                placeholder="请输入徐6微机"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="榆二联接油:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqYelEljy"
                placeholder="请输入榆二联接油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="榆二联输差:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqYelSc"
                placeholder="请输入榆二联输差"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="榆二联电脱:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqYelDt"
                placeholder="请输入榆二联电脱"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="榆二联污水:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqYelWs"
                placeholder="请输入榆二联污水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="试验站末端接油量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqMdjylSyz"
                placeholder="请输入试验站末端接油量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="东16末端接油量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqMdjylD16"
                placeholder="请输入东16末端接油量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树8末端接油量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqMdjylS8"
                placeholder="请输入树8末端接油量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="树127末端接油量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqMdjylS127"
                placeholder="请输入树127末端接油量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">肇州</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇一计划产油:">
              <el-input
                v-model="ydscsjtjbForm.zzZyJhcy"
                placeholder="请输入肇州一工区计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇一实际产油:">
              <el-input
                v-model="ydscsjtjbForm.zzZySjcy"
                placeholder="请输入肇州一工区实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇一计划注水:">
              <el-input
                v-model="ydscsjtjbForm.zzZyJhzs"
                placeholder="请输入肇州一工区计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇一日注水量:">
              <el-input
                v-model="ydscsjtjbForm.zzZyRzsl"
                placeholder="请输入肇州一工区日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇一作业积压:">
              <el-input
                v-model="ydscsjtjbForm.zzZyZyjy"
                placeholder="请输入肇州一工区作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇一待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.zzZyDzyjy"
                placeholder="请输入肇州一工区待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇一油井测压:">
              <el-input
                v-model="ydscsjtjbForm.zzZyYjcy"
                placeholder="请输入肇州一工区油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇一水井测压:">
              <el-input
                v-model="ydscsjtjbForm.zzZyShjcy"
                placeholder="请输入肇州一工区水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇二计划产油:">
              <el-input
                v-model="ydscsjtjbForm.zzZeJhcy"
                placeholder="请输入肇州二工区计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇二实际产油:">
              <el-input
                v-model="ydscsjtjbForm.zzZeSjcy"
                placeholder="请输入肇州二工区实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇二计划注水:">
              <el-input
                v-model="ydscsjtjbForm.zzZeJhzs"
                placeholder="请输入肇州二工区计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇二日注水量:">
              <el-input
                v-model="ydscsjtjbForm.zzZeRzsl"
                placeholder="请输入肇州二工区日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇二作业积压:">
              <el-input
                v-model="ydscsjtjbForm.zzZeZyjy"
                placeholder="请输入肇州二工区作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇二待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.zzZeDzyjy"
                placeholder="请输入肇州二工区待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇二油井测压:">
              <el-input
                v-model="ydscsjtjbForm.zzZeYjcy"
                placeholder="请输入肇州二工区油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇二水井测压:">
              <el-input
                v-model="ydscsjtjbForm.zzZeShjcy"
                placeholder="请输入肇州二工区水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">提捞作业区</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划捞油:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqZyqJhly"
                placeholder="请输入计划捞油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际捞油:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqZyqSjly"
                placeholder="请输入实际捞油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="东16卸油点:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydD16"
                placeholder="请输入东16卸油点"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树8卸油点:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydS18"
                placeholder="请输入树8卸油点"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="捞油合计:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydLyhj"
                placeholder="请输入捞油合计"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="新井捞油:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydXjly"
                placeholder="请输入新井捞油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="落地油:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydLdy"
                placeholder="请输入落地油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <div slot="footer" class="dialog-footer" v-show="!ischeck">
        <el-button @click="close('ydscsjtjbForm')">取 消</el-button>
        <el-button type="primary" @click="submitForm('ydscsjtjbForm')"
          >确 定</el-button
        >
      </div>
      <div slot="footer" class="dialog-footer" v-show="ischeckSh">
        <el-button type="primary" @click="submitSh('ydscsjtjbForm')"
          >提交审核</el-button
        >
      </div>
    </el-dialog>
  </div>
</template>

<script>
import axios from "axios";
import ydscsjtjbApi from "@/api/ydscsjtjb";
import { getToken } from "@/utils/auth";
export default {
  name: "TimeView",
  created() {
    this.currentTime();
  },
  data() {
    return {
      pageNo: 1, //当前页码
      pageSize: 10, //每页显示数量
      total: 0, //总数量
      // table数据
      tableData: [
        {
          date: "",
          gsCsJkcy: "", //公司-产油-井口产油
          gsCsMdwj: "", //公司-产油-末端微机
          gsCsHscy: "", //公司-产油-核实产油
          gsCsJhcy: "", //公司计划产油
          gsCsGsws: "", //公司-产油-公司外输
          gsCsElws: "", //公司-产油-二联外输
          gsLyLy: "", //公司-拉油-拉油
          gsLyTl: "", //公司-拉油-提捞
          gsLyLdy: "", //公司-拉油-落地油
          gsKcGskc: "", //公司-库存-公司库存
          gsKcElcz: "", //公司-库存-二联差值
          gsKcElkc: "", //公司-库存-二联库存
          gsZsJhzs: "", //公司-注水-计划注水
          gsZsSjsl: "", //公司-注水-实际水量
          gsJyZy: "", //公司-积压-作业
          gsJyDzy: "", //公司-积压-待作业
          gsCyYj: "", //公司-测压-油井
          gsCySj: "", //公司-测压-水井
          dyzyqZyqJhcy: "", //第一作业区-作业区-计划产油
          dyzyqZyqSjcy: "", //第一作业区-作业区-实际产油
          dyzyqZyqJhzs: "", //第一作业区-作业区-计划注水
          dyzyqZyqRzsl: "", //第一作业区-作业区-日注水量
          dyzyqZyqZyjy: "", //第一作业区-作业区-作业积压
          dyzyqZyqDzyjy: "", //第一作业区-作业区-待作业积压
          dyzyqZyqYjcy: "", //第一作业区-作业区-油井测压
          dyzyqZyqShjcy: "", //第一作业区-作业区-水井测压
          dyzyqZyqKc: "", //第一作业区-作业区-库存
          dyzyqS322Wj: "", //第一作业区-树322-微机
          dyzyqD12Wj: "", //第一作业区-东12-微机
          dyzyqS12Wj: "", //第一作业区-尚12-微机
          dezyqZyqJhcy: "", //第二作业区-作业区-计划产油
          dezyqZyqSjcy: "", //第二作业区-作业区-实际产油
          dezyqZyqJhzs: "", //第二作业区-作业区-计划注水
          dezyqZyqRzsl: "", //第二作业区-作业区-日注水量
          dezyqZyqZyjy: "", //第二作业区-作业区-作业积压
          dezyqZyqDzyjy: "", //第二作业区-作业区-待作业积压
          dezyqZyqYjcy: "", //第二作业区-作业区-油井测压
          dezyqZyqShjcy: "", //第二作业区-作业区-水井测压
          dezyqZyqKc: "", //第二作业区-作业区-库存
          dezyqD16Wj: "", //第二作业区-东16-微机
          dezyqD16Wscl: "", //第二作业区-东16-污水处理
          dezyqD14382wj: "", //第二作业区-东14-382微机
          deyzyqD14D14wj: "", //第二作业区-东14-东14微机
          dszyqZyqJhcy: "", //第三作业区-作业区-计划产油
          dszyqZyqSjcy: "", //第三作业区-作业区-实际产油
          dszyqZyqJhzs: "", //第三作业区-作业区-计划注水
          dszyqZyqRzsl: "", //第三作业区-作业区-日注水量
          dszyqZyqZyjy: "", //第三作业区-作业区-作业积压
          dszyqZyqDzyjy: "", //第三作业区-作业区-待作业积压
          dszyqZyqYjcy: "", //第三作业区-作业区-油井测压
          dszyqZyqShjcy: "", //第三作业区-作业区-水井测压
          dszyqZyqKc: "", //第三作业区-作业区-库存
          dszyqS2Cyl: "", //第三作业区-树2-产油量
          dszyq101dCyl: "", //第三作业区-101队-产油量
          dszyq101dZrl: "", //第三作业区-101队-C02注入量
          dszyqS16Wj: "", //第三作业区-树16-微机
          dsizyqZyqJhcy: "", //第四作业区-作业区-计划产油
          dsizyqZyqSjcy: "", //第四作业区-作业区-实际产油
          dsizyqZyqJhzs: "", //第四作业区-作业区-计划注水
          dsizyqZyqRzsl: "", //第四作业区-作业区-日注水量
          dsizyqZyqZyjy: "", //第四作业区-作业区-作业积压
          dsizyqZyqDzyjy: "", //第四作业区-作业区-待作业积压
          dsizyqZyqYjcy: "", //第四作业区-作业区-油井测压
          dsizyqZyqShjcy: "", //第四作业区-作业区-水井测压
          dsizyqZyqKc: "", //第四作业区-作业区-库存
          dsizyqS103Wj: "", //第四作业区-树103-微机
          dsizyqS12Wj: "", //第四作业区-树12-微机
          dsizyqX30Wj: "", //第四作业区-徐30-微机
          dsizyqX6Wj: "", //第四作业区-徐6-微机
          dsizyqYelEljy: "", //第四作业区-榆二联-二联接油
          dsizyqYelSc: "", //第四作业区-榆二联-输差
          dsizyqYelDt: "", //第四作业区-榆二联-电脱
          dsizyqYelWs: "", //第四作业区-榆二联-污水
          dsizyqMdjylSyz: "", //第四作业区-末端接油量-实验站
          dsizyqMdjylD16: "", //第四作业区-末端接油量-东16
          dsizyqMdjylS8: "", //第四作业区-末端接油量-树8
          dsizyqMdjylS127: "", //第四作业区-末端接油量-树127
          zzZyJhcy: "", //肇州-肇州一区-计划产油
          zzZySjcy: "", //肇州-肇州一区-实际产油
          zzZyJhzs: "", //肇州-肇州一区-计划注水
          zzZyRzsl: "", //肇州-肇州一区-日注水量
          zzZyZyjy: "", //肇州-肇州一区-作业积压
          zzZyDzyjy: "", //肇州-肇州一区-待作业积压
          zzZyYjcy: "", //肇州-肇州一区-油井测压
          zzZyShjcy: "", //肇州-肇州一区-水井测压
          zzZeJhcy: "", //肇州-肇州二区-计划产油
          zzZeSjcy: "", //肇州-肇州二区-实际产油
          zzZeJhzs: "", //肇州-肇州二区-计划注水
          zzZeRzsl: "", //肇州-肇州二区-日注水量
          zzZeZyjy: "", //肇州-肇州二区-作业积压
          zzZeDzyjy: "", //肇州-肇州二区-待作业积压
          zzZeYjcy: "", //肇州-肇州二区-油井测压
          zzZeShjcy: "", //肇州-肇州二区-水井测压
          tlzyqZyqJhly: "", //提捞作业区-作业区-计划捞油
          tlzyqZyqSjly: "", //提捞作业区-作业区-实际捞油
          tlzyqXydD16: "", //提捞作业区-卸油点-东16
          tlzyqXydS18: "", //提捞作业区-卸油点-树18
          tlzyqXydLyhj: "", //提捞作业区-卸油点-捞油合计
          tlzyqXydLdy: "", //提捞作业区-卸油点-落地油
          bz: "", //备注
        },
        {
          date: "",
          gsCsJkcy: "", //公司-产油-井口产油
          gsCsMdwj: "", //公司-产油-末端微机
          gsCsHscy: "", //公司-产油-核实产油
          gsCsGsws: "", //公司-产油-公司外输
          gsCsElws: "", //公司-产油-二联外输
          gsLyLy: "", //公司-拉油-拉油
          gsLyTl: "", //公司-拉油-提捞
          gsLyLdy: "", //公司-拉油-落地油
          gsKcGskc: "", //公司-库存-公司库存
          gsKcElcz: "", //公司-库存-二联差值
          gsKcElkc: "", //公司-库存-二联库存
          gsZsJhzs: "", //公司-注水-计划注水
          gsZsSjsl: "", //公司-注水-实际水量
          gsJyZy: "", //公司-积压-作业
          gsJyDzy: "", //公司-积压-待作业
          gsCyYj: "", //公司-测压-油井
          gsCySj: "", //公司-测压-水井
          dyzyqZyqJhcy: "", //第一作业区-作业区-计划产油
          dyzyqZyqSjcy: "", //第一作业区-作业区-实际产油
          dyzyqZyqJhzs: "", //第一作业区-作业区-计划注水
          dyzyqZyqRzsl: "", //第一作业区-作业区-日注水量
          dyzyqZyqZyjy: "", //第一作业区-作业区-作业积压
          dyzyqZyqDzyjy: "", //第一作业区-作业区-待作业积压
          dyzyqZyqYjcy: "", //第一作业区-作业区-油井测压
          dyzyqZyqShjcy: "", //第一作业区-作业区-水井测压
          dyzyqZyqKc: "", //第一作业区-作业区-库存
          dyzyqS322Wj: "", //第一作业区-树322-微机
          dyzyqD12Wj: "", //第一作业区-东12-微机
          dyzyqS12Wj: "", //第一作业区-尚12-微机
          dezyqZyqJhcy: "", //第二作业区-作业区-计划产油
          dezyqZyqSjcy: "", //第二作业区-作业区-实际产油
          dezyqZyqJhzs: "", //第二作业区-作业区-计划注水
          dezyqZyqRzsl: "", //第二作业区-作业区-日注水量
          dezyqZyqZyjy: "", //第二作业区-作业区-作业积压
          dezyqZyqDzyjy: "", //第二作业区-作业区-待作业积压
          dezyqZyqYjcy: "", //第二作业区-作业区-油井测压
          dezyqZyqShjcy: "", //第二作业区-作业区-水井测压
          dezyqZyqKc: "", //第二作业区-作业区-库存
          dezyqD16Wj: "", //第二作业区-东16-微机
          dezyqD16Wscl: "", //第二作业区-东16-污水处理
          dezyqD14382wj: "", //第二作业区-东14-382微机
          deyzyqD14D14wj: "", //第二作业区-东14-东14微机
          dszyqZyqJhcy: "", //第三作业区-作业区-计划产油
          dszyqZyqSjcy: "", //第三作业区-作业区-实际产油
          dszyqZyqJhzs: "", //第三作业区-作业区-计划注水
          dszyqZyqRzsl: "", //第三作业区-作业区-日注水量
          dszyqZyqZyjy: "", //第三作业区-作业区-作业积压
          dszyqZyqDzyjy: "", //第三作业区-作业区-待作业积压
          dszyqZyqYjcy: "", //第三作业区-作业区-油井测压
          dszyqZyqShjcy: "", //第三作业区-作业区-水井测压
          dszyqZyqKc: "", //第三作业区-作业区-库存
          dszyqS2Cyl: "", //第三作业区-树2-产油量
          dszyq101dCyl: "", //第三作业区-101队-产油量
          dszyq101dZrl: "", //第三作业区-101队-C02注入量
          dszyqS16Wj: "", //第三作业区-树16-微机
          dsizyqZyqJhcy: "", //第四作业区-作业区-计划产油
          dsizyqZyqSjcy: "", //第四作业区-作业区-实际产油
          dsizyqZyqJhzs: "", //第四作业区-作业区-计划注水
          dsizyqZyqRzsl: "", //第四作业区-作业区-日注水量
          dsizyqZyqZyjy: "", //第四作业区-作业区-作业积压
          dsizyqZyqDzyjy: "", //第四作业区-作业区-待作业积压
          dsizyqZyqYjcy: "", //第四作业区-作业区-油井测压
          dsizyqZyqShjcy: "", //第四作业区-作业区-水井测压
          dsizyqZyqKc: "", //第四作业区-作业区-库存
          dsizyqS103Wj: "", //第四作业区-树103-微机
          dsizyqS12Wj: "", //第四作业区-树12-微机
          dsizyqX30Wj: "", //第四作业区-徐30-微机
          dsizyqX6Wj: "", //第四作业区-徐6-微机
          dsizyqYelEljy: "", //第四作业区-榆二联-二联接油
          dsizyqYelSc: "", //第四作业区-榆二联-输差
          dsizyqYelDt: "", //第四作业区-榆二联-电脱
          dsizyqYelWs: "", //第四作业区-榆二联-污水
          dsizyqMdjylSyz: "", //第四作业区-末端接油量-实验站
          dsizyqMdjylD16: "", //第四作业区-末端接油量-东16
          dsizyqMdjylS8: "", //第四作业区-末端接油量-树8
          dsizyqMdjylS127: "", //第四作业区-末端接油量-树127
          zzZyJhcy: "", //肇州-肇州一区-计划产油
          zzZySjcy: "", //肇州-肇州一区-实际产油
          zzZyJhzs: "", //肇州-肇州一区-计划注水
          zzZyRzsl: "", //肇州-肇州一区-日注水量
          zzZyZyjy: "", //肇州-肇州一区-作业积压
          zzZyDzyjy: "", //肇州-肇州一区-待作业积压
          zzZyYjcy: "", //肇州-肇州一区-油井测压
          zzZyShjcy: "", //肇州-肇州一区-水井测压
          zzZeJhcy: "", //肇州-肇州二区-计划产油
          zzZeSjcy: "", //肇州-肇州二区-实际产油
          zzZeJhzs: "", //肇州-肇州二区-计划注水
          zzZeRzsl: "", //肇州-肇州二区-日注水量
          zzZeZyjy: "", //肇州-肇州二区-作业积压
          zzZeDzyjy: "", //肇州-肇州二区-待作业积压
          zzZeYjcy: "", //肇州-肇州二区-油井测压
          zzZeShjcy: "", //肇州-肇州二区-水井测压
          tlzyqZyqJhly: "", //提捞作业区-作业区-计划捞油
          tlzyqZyqSjly: "", //提捞作业区-作业区-实际捞油
          tlzyqXydD16: "", //提捞作业区-卸油点-东16
          tlzyqXydS18: "", //提捞作业区-卸油点-树18
          tlzyqXydLyhj: "", //提捞作业区-卸油点-捞油合计
          tlzyqXydLdy: "", //提捞作业区-卸油点-落地油
          bz: "", //备注
        },
      ],
      //当前时间
      nowDate: "",
      //表单填报的数据
      ydscsjtjbForm: {
        id: "",
        rq: "",
        approveStatus: "",
        approveBz: "",
        gsCsJkcy: "", //公司-产油-井口产油
        gsCsMdwj: "", //公司-产油-末端微机
        gsCsJhcy: "", //公司计划产油
        gsCsHscy: "", //公司-产油-核实产油
        gsCsGsws: "", //公司-产油-公司外输
        gsCsElws: "", //公司-产油-二联外输
        gsLyLy: "", //公司-拉油-拉油
        gsLyTl: "", //公司-拉油-提捞
        gsLyLdy: "", //公司-拉油-落地油
        gsKcGskc: "", //公司-库存-公司库存
        gsKcElcz: "", //公司-库存-二联差值
        gsKcElkc: "", //公司-库存-二联库存
        gsZsJhzs: "", //公司-注水-计划注水
        gsZsSjsl: "", //公司-注水-实际水量
        gsJyZy: "", //公司-积压-作业
        gsJyDzy: "", //公司-积压-待作业
        gsCyYj: "", //公司-测压-油井
        gsCySj: "", //公司-测压-水井
        dyzyqZyqJhcy: "", //第一作业区-作业区-计划产油
        dyzyqZyqSjcy: "", //第一作业区-作业区-实际产油
        dyzyqZyqJhzs: "", //第一作业区-作业区-计划注水
        dyzyqZyqRzsl: "", //第一作业区-作业区-日注水量
        dyzyqZyqZyjy: "", //第一作业区-作业区-作业积压
        dyzyqZyqDzyjy: "", //第一作业区-作业区-待作业积压
        dyzyqZyqYjcy: "", //第一作业区-作业区-油井测压
        dyzyqZyqShjcy: "", //第一作业区-作业区-水井测压
        dyzyqZyqKc: "", //第一作业区-作业区-库存
        dyzyqS322Wj: "", //第一作业区-树322-微机
        dyzyqD12Wj: "", //第一作业区-东12-微机
        dyzyqS12Wj: "", //第一作业区-尚12-微机
        dezyqZyqJhcy: "", //第二作业区-作业区-计划产油
        dezyqZyqSjcy: "", //第二作业区-作业区-实际产油
        dezyqZyqJhzs: "", //第二作业区-作业区-计划注水
        dezyqZyqRzsl: "", //第二作业区-作业区-日注水量
        dezyqZyqZyjy: "", //第二作业区-作业区-作业积压
        dezyqZyqDzyjy: "", //第二作业区-作业区-待作业积压
        dezyqZyqYjcy: "", //第二作业区-作业区-油井测压
        dezyqZyqShjcy: "", //第二作业区-作业区-水井测压
        dezyqZyqKc: "", //第二作业区-作业区-库存
        dezyqD16Wj: "", //第二作业区-东16-微机
        dezyqD16Wscl: "", //第二作业区-东16-污水处理
        dezyqD14382wj: "", //第二作业区-东14-382微机
        deyzyqD14D14wj: "", //第二作业区-东14-东14微机
        dszyqZyqJhcy: "", //第三作业区-作业区-计划产油
        dszyqZyqSjcy: "", //第三作业区-作业区-实际产油
        dszyqZyqJhzs: "", //第三作业区-作业区-计划注水
        dszyqZyqRzsl: "", //第三作业区-作业区-日注水量
        dszyqZyqZyjy: "", //第三作业区-作业区-作业积压
        dszyqZyqDzyjy: "", //第三作业区-作业区-待作业积压
        dszyqZyqYjcy: "", //第三作业区-作业区-油井测压
        dszyqZyqShjcy: "", //第三作业区-作业区-水井测压
        dszyqZyqKc: "", //第三作业区-作业区-库存
        dszyqS2Cyl: "", //第三作业区-树2-产油量
        dszyq101dCyl: "", //第三作业区-101队-产油量
        dszyq101dZrl: "", //第三作业区-101队-C02注入量
        dszyqS16Wj: "", //第三作业区-树16-微机
        dsizyqZyqJhcy: "", //第四作业区-作业区-计划产油
        dsizyqZyqSjcy: "", //第四作业区-作业区-实际产油
        dsizyqZyqJhzs: "", //第四作业区-作业区-计划注水
        dsizyqZyqRzsl: "", //第四作业区-作业区-日注水量
        dsizyqZyqZyjy: "", //第四作业区-作业区-作业积压
        dsizyqZyqDzyjy: "", //第四作业区-作业区-待作业积压
        dsizyqZyqYjcy: "", //第四作业区-作业区-油井测压
        dsizyqZyqShjcy: "", //第四作业区-作业区-水井测压
        dsizyqZyqKc: "", //第四作业区-作业区-库存
        dsizyqS103Wj: "", //第四作业区-树103-微机
        dsizyqS12Wj: "", //第四作业区-树12-微机
        dsizyqX30Wj: "", //第四作业区-徐30-微机
        dsizyqX6Wj: "", //第四作业区-徐6-微机
        dsizyqYelEljy: "", //第四作业区-榆二联-二联接油
        dsizyqYelSc: "", //第四作业区-榆二联-输差
        dsizyqYelDt: "", //第四作业区-榆二联-电脱
        dsizyqYelWs: "", //第四作业区-榆二联-污水
        dsizyqMdjylSyz: "", //第四作业区-末端接油量-实验站
        dsizyqMdjylD16: "", //第四作业区-末端接油量-东16
        dsizyqMdjylS8: "", //第四作业区-末端接油量-树8
        dsizyqMdjylS127: "", //第四作业区-末端接油量-树127
        zzZyJhcy: "", //肇州-肇州一区-计划产油
        zzZySjcy: "", //肇州-肇州一区-实际产油
        zzZyJhzs: "", //肇州-肇州一区-计划注水
        zzZyRzsl: "", //肇州-肇州一区-日注水量
        zzZyZyjy: "", //肇州-肇州一区-作业积压
        zzZyDzyjy: "", //肇州-肇州一区-待作业积压
        zzZyYjcy: "", //肇州-肇州一区-油井测压
        zzZyShjcy: "", //肇州-肇州一区-水井测压
        zzZeJhcy: "", //肇州-肇州二区-计划产油
        zzZeSjcy: "", //肇州-肇州二区-实际产油
        zzZeJhzs: "", //肇州-肇州二区-计划注水
        zzZeRzsl: "", //肇州-肇州二区-日注水量
        zzZeZyjy: "", //肇州-肇州二区-作业积压
        zzZeDzyjy: "", //肇州-肇州二区-待作业积压
        zzZeYjcy: "", //肇州-肇州二区-油井测压
        zzZeShjcy: "", //肇州-肇州二区-水井测压
        tlzyqZyqJhly: "", //提捞作业区-作业区-计划捞油
        tlzyqZyqSjly: "", //提捞作业区-作业区-实际捞油
        tlzyqXydD16: "", //提捞作业区-卸油点-东16
        tlzyqXydS18: "", //提捞作业区-卸油点-树18
        tlzyqXydLyhj: "", //提捞作业区-卸油点-捞油合计
        tlzyqXydXjly: "", //新井捞油
        tlzyqXydLdy: "", //提捞作业区-卸油点-落地油
        bz: "", //备注
      },
      // 下拉框的内容
      zyqOptions: [
        { value: "第 一 作业区", label: "第 一 作业区" },
        { value: "第 二 作业区", label: "第 二 作业区" },
        { value: "第 三 作业区", label: "第 三 作业区" },
        { value: "第 四 作业区", label: "第 四 作业区" },
      ],
      zcbOptions: [
        { value: "树322注采班", label: "树322注采班" },
        { value: "东163队注采班", label: "东163队注采班" },
        { value: "东164队注采班", label: "东164队注采班" },
        { value: "东165队注采班", label: "东165队注采班" },
      ],
      rqOptions: [
        { value: "1", label: "昨日数据" },
        { value: "2", label: "今日数据" },
      ],
      //时间快捷选择
      pickerOptions: {
        // disabledDate(time) {
        //   return time.getTime() > Date.now();
        // },
        shortcuts: [
          {
            text: "今天",
            onClick(picker) {
              picker.$emit("pick", new Date());
            },
          },
          {
            text: "昨天",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24);
              picker.$emit("pick", date);
            },
          },
          {
            text: "一周前",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", date);
            },
          },
        ],
      },
      //编辑框是否显示
      dialogFormVisible: false,
      //弹出框是否是查看
      ischeck: false,
      //控制查看时不可更改数据
      isInput: false,
      //弹出框是否有提交审核按钮
      ischeckSh: false,
      //弹出框标题
      myDialogTitle: "",

      file: null,
      //加载动画
      uploadLoading: false,
      //上传的文件列表
      fileList: [],
      //控制弹出框显示与否
      uploadShowDialog: false,
      //上传地址
      uploadURL: "",
      //loading加载中
      downloadLoading: "",
      importDialog: false,
      fileList: [],
      urlFile: "",
      uploading: true,
      token: "",
    };
  },
  created() {
    this.search();
  },
  mounted() {
    // this.filterTime();
    // this.token =
    //   "http://47.108.251.250:3296/api/ydscsjtjb/downLoadExcel?token=" +
    //   getToken();
    // // this.initDate();
  },
  methods: {
    async search() {
      // this.ydscsjtjbForm.currentPage = currentPage;
      // this.ydscsjtjbForm.pageSize = pageSize;
      // 发送查询请求
      let res = await ydscsjtjbApi.getDataList(this.pageNo, this.pageSize);
      //判断是否成功
      if (res.success) {
        console.log(res.data);
        //赋值
        this.tableData = res.data.records;
        //总数量
        this.total = res.data.total;
      }
    },
    onSubmit() {
      console.log("submit!");
    },
    //关闭对话框
    handleClose(done) {
      this.$refs["ydscsjtjbForm"].clearValidate();
      done();
    },
    handleClose1(done) {
      this.urlFile = "";
      this.fileList = [];
      done();
    },
    //触发弹窗关闭
    close(formName) {
      this.dialogFormVisible = false;
      // 清空表单
      // this.$refs[formName].resetFields();
      // 清空表单校验，避免再次进来会出现上次校验的记录
      this.$refs[formName].clearValidate();
    },
    submitForm(formName) {
      //表单验证
      this.$refs[formName].validate(async (valid) => {
        if (valid) {
          let res = null;
          console.log(this.ydscsjtjbForm.id + "111");
          //判断菜单ID是否为空
          if (this.ydscsjtjbForm.id === "") {
            //  this.ydscsjtjbForm.poundSign = '树57-斜60';
            //发送添加请求
            res = await ydscsjtjbApi.addData(this.ydscsjtjbForm);
          } else {
            //发送修改请求
            // this.ydscsjtjbForm.jh = 2;
            // console.log(334345)
            this.ydscsjtjbForm.approveStatus = 0;
            res = await ydscsjtjbApi.updateData(this.ydscsjtjbForm);
          }
          console.log(res);
          //判断是否成功
          if (res.success) {
            this.$message.success(res.message);
            //刷新
            this.search();
            //关闭窗口
            this.dialogFormVisible = false;
          } else {
            console.log(res);
            this.$message.error(res.message);
          }
        }
      });
    },
    async submitSh(formName) {
      let res = null;
      //发送修改请求
      this.ydscsjtjbForm.approveStatus = 1;
      this.ydscsjtjbForm.approveBz = "";
      // console.log(334345)
      res = await ydscsjtjbApi.updateData(this.ydscsjtjbForm);

      console.log(res);
      //判断是否成功
      if (res.success) {
        this.$message.success(res.message);
        //刷新
        this.search();
        //关闭窗口
        this.dialogFormVisible = false;
      } else {
        console.log(res);
        this.$message.error(res.message);
      }
    },
    handleClick(row, handle) {
      // console.log(row.approveStatus);
      this.dialogFormVisible = true;
      if (handle == "check") {
        this.myDialogTitle = "月度生产数据统计表";
        if (row.approveStatus == 0) {
          this.ischeckSh = true;
        } else {
          this.ischeckSh = false;
        }
        this.ischeck = true;
        this.isInput = true; // 1.表单禁用
        // this.ydscsjtjbForm = row
        this.$objCopy(row, this.ydscsjtjbForm); //把当前要编辑的数据复制到数据域，给表单回显
        this.$message({ message: "成功打开", type: "success" });
      } else if (handle == "edit") {
        if (row.approveStatus != 2) {
          this.myDialogTitle = "月度生产数据统计表编辑";
          this.ischeck = false;
          this.ischeckSh = false;
          this.isInput = false;
          this.$objCopy(row, this.ydscsjtjbForm); //把当前要编辑的数据复制到数据域，给表单回显
        } else {
          this.dialogFormVisible = false;
          this.$message({ message: "已通过不可修改！", type: "error" });
        }
      } else if (handle == "add") {
        // this.ydscsjtjbForm ={}
        this.$resetForm("ydscsjtjbForm", this.ydscsjtjbForm); //清空表单数据
        this.myDialogTitle = "月度生产数据统计表填报";
        this.ischeck = false;
        this.ischeckSh = false;
        this.isInput = false;
      }
      // console.log(row);
    },
    uploadFiles() {
      this.importDialog = true;
      this.urlFile = "";
    },
    cancelUpload() {
      this.urlFile = "";
      this.fileList = [];
      this.importDialog = false;
    },
    //  监听改变
    handleChange(file, fileList) {
      this.fileList = fileList;
    },
    // 移除
    handleRemove(file, fileList) {
      this.fileList = fileList;
    },
    beforeAvatarUpload(file) {
      //1MB=1024*1024(1MB=1024KB 1KB=1024MB)
      const is10M = file.size / 1024 / 1024 < 10;
      //限制文件上传大小
      if (!is10M) {
        this.$message.error("上传图片大小不能超过 10MB!");
        return false;
      }
      return true;
    },
    // 自定义上传Excel方法
    httpRequest(param) {
      // console.log(param.file);
      this.uploading = true;
      const File = this.fileList[0].raw;
      // const File = param.file
      console.log(File);
      // console.log(this.fileList);
      let formData = new FormData();
      formData.append("myfile", File);
      console.log(formData.get("myfile"));

      axios({
        url: "http://47.108.251.250:3296/api/fileAbout/fileUpload",
        method: "post",
        headers: {
          token: getToken(),
          "Content-Type": "multipart/form-data",
        },
        data: formData,
      }).then(
        (response) => {
          if (response.data.success === true && response.data.data !== "") {
            console.log(response.data);
            this.urlFile = response.data.data;
            console.log(this.urlFile);
            this.$message.success(response.data.message);
            param.onSuccess();
            this.uploading = false;
          } else {
            this.$message.error("上传失败");
          }
        },
        (error) => {
          console.log(error);
          this.$message.error(response.data.message);
        }
      );
    },
    //文件导入
    upload() {
      let formData = new FormData();
      formData.append("filePath", this.urlFile);
      console.log(formData.get("filePath"));
      axios({
        url: "http://47.108.251.250:3296/api/ydscsjtjb/batchInput",
        method: "post",
        headers: {
          token: getToken(),
          "Content-Type": "multipart/form-data",
        },
        data: formData,
      }).then(
        (response) => {
          if (response.data.success === true) {
            console.log(response.data);
            this.$message.success(response.data.message);
            //刷新
            this.search();
            //关闭窗口
            this.importDialog = false;
            this.fileList = [];
          } else {
            this.$message.error("导入失败");
          }
        },
        (error) => {
          console.log(error);
          this.$message.error(response.data.message);
        }
      );
    },

    //下载模板
    handleDownload() {
      import("@/vendor/Export2Excel").then((excel) => {
        console.log(11111);
        const multiHeader = [
          [
            "日期",
            "公司",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "第一作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "第二作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "第三作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "第四作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "肇州",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "提捞作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "备注",
          ], //第一行
          [
            "",
            "产油",
            "",
            "",
            "",
            "",
            "",
            "拉油",
            "",
            "",
            "库存",
            "",
            "",
            "注水",
            "",
            "积压",
            "",
            "测压",
            "",
            "作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "树322",
            "东12",
            "尚12",
            "作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "东16",
            "",
            "东14",
            "",
            "作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "树2",
            "101队",
            "",
            "树16",
            "作业区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "树103",
            "树12",
            "徐30",
            "徐6",
            "榆二联",
            "",
            "",
            "",
            "末端接油量",
            "",
            "",
            "",
            "肇州一工区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "肇州二工区",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "作业区",
            "",
            "卸油点",
            "",
            "",
            "",
            "",
            "",
          ], //第二行
        ]; // 前两行的表头数据，二维数组，不够的用空白补全
        const header = [
          "",
          "井口产油",
          "末端微机",
          "计划产油",
          "核实产油",
          "公司外输",
          "二联外输",
          "拉油",
          "提捞",
          "落地油",
          "公司库存",
          "二联差值",
          "二联库存",
          "计划水量",
          "实际水量",
          "作业",
          "待作业",
          "油井",
          "水井",
          "计划产油",
          "实际产油",
          "计划注水",
          "实际注水",
          "日注水量",
          "作业积压",
          "待作业积压",
          "油井测压",
          "水井测压",
          "库存",
          "微机",
          "微机",
          "微机",
          "计划产油",
          "实际产油",
          "计划注水",
          "实际注水",
          "日注水量",
          "作业积压",
          "待作业积压",
          "油井测压",
          "水井测压",
          "库存",
          "微机",
          "污水处理",
          "382微机",
          "东14微机",
          "计划产油",
          "实际产油",
          "计划注水",
          "日注水量",
          "作业积压",
          "待作业积压",
          "油井测压",
          "水井测压",
          "库存",
          "产油量",
          "产油量",
          "C02注入量",
          "微机",
          "计划产油",
          "实际产油",
          "计划注水",
          "实际注水",
          "日注水量",
          "作业积压",
          "待作业积压",
          "油井测压",
          "水井测压",
          "库存",
          "微机",
          "微机",
          "微机",
          "微机",
          "二联接油",
          "输差",
          "电脱",
          "污水",
          "实验站",
          "东16",
          "树8",
          "树127",
          "计划产油",
          "实际产油",
          "计划注水",
          "日注水量",
          "作业积压",
          "待作业积压",
          "油井测压",
          "水井测压",
          "计划产油",
          "实际产油",
          "计划注水",
          "日注水量",
          "作业积压",
          "待作业积压",
          "油井测压",
          "水井测压",
          "计划捞油",
          "实际捞油",
          "东16",
          "树8",
          "捞油合计",
          "新井捞油",
          "落地油",
          "",
        ]; // 最后一行的表头数据
        const filterVal = [
          "rq",
          "gsCsJkcy",
          "gsCsMdwj",
          "gsCsJhcy",
          "gsCsHscy",
          "gsCsGsws",
          "gsCsElws",
          "gsLyLy",
          "gsLyTl",
          "gsLyLdy",
          "gsKcGskc",
          "gsKcElcz",
          "gsKcElkc",
          "gsZsJhzs",
          "gsZsSjsl",
          "gsJyZy",
          "gsJyDzy",
          "gsCyYj",
          "gsCySj",
          "dyzyqZyqJhcy",
          "dyzyqZyqSjcy",
          "dyzyqZyqJhzs",
          "dyzyqZyqRzsl",
          "dyzyqZyqZyjy",
          "dyzyqZyqDzyjy",
          "dyzyqZyqYjcy",
          "dyzyqZyqShjcy",
          "dyzyqZyqKc",
          "dyzyqS322Wj",
          "dyzyqD12Wj",
          "dyzyqS12Wj",
          "dezyqZyqJhcy",
          "dezyqZyqSjcy",
          "dezyqZyqJhzs",
          "dezyqZyqRzsl",
          "dezyqZyqZyjy",
          "dezyqZyqDzyjy",
          "dezyqZyqYjcy",
          "dezyqZyqShjcy",
          "dezyqZyqKc",
          "dezyqD16Wj",
          "dezyqD16Wscl",
          "dezyqD14382wj",
          "deyzyqD14D14wj",
          "dszyqZyqJhcy",
          "dszyqZyqSjcy",
          "dszyqZyqJhzs",
          "dszyqZyqRzsl",
          "dszyqZyqZyjy",
          "dszyqZyqDzyjy",
          "dszyqZyqYjcy",
          "dszyqZyqShjcy",
          "dszyqZyqKc",
          "dszyqS2Cyl",
          "dszyq101dCyl",
          "dszyq101dZrl",
          "dszyqS16Wj",
          "dsizyqZyqJhcy",
          "dsizyqZyqSjcy",
          "dsizyqZyqJhzs",
          "dsizyqZyqRzsl",
          "dsizyqZyqZyjy",
          "dsizyqZyqDzyjy",
          "dsizyqZyqYjcy",
          "dsizyqZyqShjcy",
          "dsizyqZyqKc",
          "dsizyqS103Wj",
          "dsizyqS12Wj",
          "dsizyqX30Wj",
          "dsizyqX6Wj",
          "dsizyqYelEljy",
          "dsizyqYelSc",
          "dsizyqYelDt",
          "dsizyqYelWs",
          "dsizyqMdjylSyz",
          "dsizyqMdjylD16",
          "dsizyqMdjylS8",
          "dsizyqMdjylS127",
          "zzZyJhcy",
          "zzZySjcy",
          "zzZyJhzs",
          "zzZyRzsl",
          "zzZyZyjy",
          "zzZyDzyjy",
          "zzZyYjcy",
          "zzZyShjcy",
          "zzZeJhcy",
          "zzZeSjcy",
          "zzZeJhzs",
          "zzZeRzsl",
          "zzZeZyjy",
          "zzZeDzyjy",
          "zzZeYjcy",
          "zzZeShjcy",
          "tlzyqZyqJhly",
          "tlzyqZyqSjly",
          "tlzyqXydD16",
          "tlzyqXydS18",
          "tlzyqXydLyhj",
          "tlzyqXydXjly",
          "tlzyqXydLdy",
          "bz",
        ];
        const list = this.tableData;
        const data = this.formatJson(filterVal, list);
        const merges = [
          "A1:A3",
          "B1:S1",
          "T1:AE1",
          "AF1:AR1",
          "AS1:BE1",
          "BF1:BZ1",
          "CA1:CP1",
          "CQ1:CW1",
          "CX1:CX3",
          "B2:G2",
          "H2:G2",
          "K2:M2",
          "N2:O2",
          "P2:Q2",
          "R2:S2",
          "T2:AB2",
          "AF2:AN2",
          "AO2:AP2",
          "AQ2:AR2",
          "AS2:BA2",
          "BC2:BD2",
          "BF2:BN2",
          "BS2:BV2",
          "BW2:BZ2",
          "CA2:CH2",
          "CI2:CP2",
          "CQ2:CR2",
          "CS2:CW2",
        ]; // 合并单元格的数据
        excel.export_json_to_excel({
          multiHeader,
          header,
          merges,
          data,
        });
      });
    },
    formatJson(filterVal, jsonData) {
      return jsonData.map((v) =>
        filterVal.map((j) => {
          return v[j];
        })
      );
    },
    getDate() {
      let date = new Date();
      let year = date.getFullYear(); // 年
      let month = date.getMonth() + 1; // 月
      let day = date.getDate(); // 日
      let week = date.getDay(); // 星期
      let weekArr = [
        "星期日",
        "星期一",
        "星期二",
        "星期三",
        "星期四",
        "星期五",
        "星期六",
      ];
      let hour = date.getHours(); // 时
      hour = hour < 10 ? "0" + hour : hour; // 如果只有一位，则前面补零
      let minute = date.getMinutes(); // 分
      minute = minute < 10 ? "0" + minute : minute; // 如果只有一位，则前面补零
      let second = date.getSeconds(); // 秒
      second = second < 10 ? "0" + second : second; // 如果只有一位，则前面补零
      this.nowDate = `${year}年${month}月${day}日 ${hour}时${minute}分${second}秒 ${weekArr[week]}`;
    },
    //定时器调取当前时间
    currentTime() {
      setInterval(() => {
        this.getDate();
      }, 1000);
    },
    onSubmit() {
      console.log("submit!");
    },

    uploadData() {
      console.log("批量导入成功");
    },
    //每页条数改变时触发 选择一页显示多少行
    handleSizeChange(size) {
      console.log(size);
      this.pageSize = size;
      this.search(this.pageNo, size);
    },
    //当前页改变时触发 跳转其他页
    handleCurrentChange(page) {
      console.log(page);
      this.pageNo = page;
      //调用查询方法
      this.search(page, this.pageSize);
    },
    // 序号计算
    indexMethod(index) {
      // index默认在0开始，这里+1
      return index + 1 + (this.pageNo - 1) * this.pageSize;
    },
    //复选框
    handleSelectionChange(val) {
      this.multipleSelection = val;
    },
    //删除行数据

    async handleDelete(row) {

      //判断是否可以删除
      if (row.approveStatus == 2) {
        //提示不能删除
        this.$message({ message: '已通过不可删除！', type: 'error' });
      } else {
        //确认是否删除
        let confirm = await this.$myconfirm("确定要删除该数据吗?");
        console.log(confirm)
        if (confirm) {
          //发送删除请求
          console.log('111')
          let res = await ydscsjtjbApi.delete({ id: row.id });
          console.log('222')
          console.log(res)
          //判断是否成功
          if (res.success) {
            //成功提示
            this.$message.success(res.message);
            //刷新
            this.search();
          } else {
            //失败提示
            this.$message.error(res.message);
          }
        }
      }
      },
  },
};
</script>

<style lang="scss" scoped>
// 标题
.mytitle {
  font-size: large;
  padding-left: 10px;
  margin-bottom: 16px;
  float: left;
}

//按钮组
.myButtons {
  float: right;
}

//格子的样式
.bg-white {
  background: #ffffff;
}

.grid-content {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.calendar ::v-deep .el-button-group::before {
  display: none;
}

.calendar ::v-deep .el-button-group::after {
  display: none;
}

// 分割线样式
.el-divider--horizontal {
  display: block;
  height: 2px;
  width: 100%;
  margin: 24px 0;
}

// 表单各项的样式
.el-form-item {
  margin: 15px 10px 15px 10px;
}

//表单禁用字体样式
.el-input.is-disabled ::v-deep .el-input__inner {
  color: #606266;
}
//对话框宽度
// .customWidth{
//         width:80%;
//     }
::v-deep .saveAsDialog {
  width: 60% !important;
}

::v-deep .el-table .cell {
  overflow: unset;
}

.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 180px;
}

.el-input {
  width: 180px;
}
.tagstyle {
  cursor: pointer;
}
</style>